Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLI-1225: The pull:database command fails silently if pv is not installed. #1641

Merged
merged 3 commits into from
Nov 27, 2023

Conversation

mdlutz24
Copy link
Contributor

@mdlutz24 mdlutz24 commented Nov 27, 2023

Motivation
Fixes #1640: The pull:database command fails silently if pv is not installed

Proposed changes
if pv is not installed, run gunzip with the -c flag so the decompressed output is piped to the mysql command

Alternatives considered
There are other possible ways to manage output redirection in bash, this seemed simplest.

Testing steps
On a system without pv installed set the appropriate ACLI_DB_**** environmental variables and execute an acli pull:database request. See the database downloaded and the command appear to succeed. Open the database and see that it is not empty.

  1. Follow the contribution guide to set up your development environment or download a pre-built acli.phar for this PR.
  2. Clear the kernel cache to pick up new and changed commands: ./bin/acli ckc
  3. (add specific steps for this pr)

@danepowell danepowell added the bug Something isn't working label Nov 27, 2023
Copy link

codecov bot commented Nov 27, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (436891f) 91.93% compared to head (525f165) 91.96%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #1641      +/-   ##
============================================
+ Coverage     91.93%   91.96%   +0.03%     
  Complexity     1820     1820              
============================================
  Files           124      124              
  Lines          6513     6513              
============================================
+ Hits           5988     5990       +2     
+ Misses          525      523       -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@danepowell danepowell merged commit ef27522 into acquia:main Nov 27, 2023
12 checks passed
@danepowell
Copy link
Contributor

Thanks for the PR!

@mdlutz24
Copy link
Contributor Author

Thanks for the PR!

Thanks for the test!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CLI-1225: The pull:database command fails silently if pv is not installed.
2 participants